package svc

import (
	"api/internal/config"
	"github.com/zeromicro/go-zero/zrpc"
	"tiktok_src/tiktookclient"
)

type ServiceContext struct {
	Config     config.Config
	TiktookSrv tiktookclient.Tiktook
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:     c,
		TiktookSrv: tiktookclient.NewTiktook(zrpc.MustNewClient(c.TiktookSrv)),
	}
}
